package com.ant.storage.common;

import io.swagger.annotations.ApiModelProperty;

import javax.validation.constraints.Min;

/**
 * @author hzd
 * @version 1.0
 * @date 2022/4/30 11:38
 */
public class PageRequest {
    /**
     * 当前页码
     */
    @ApiModelProperty("当前页码")
    @Min(value = 1,message = "参数类型不对")
    private Integer pageIndex=1;
    /**
     * 每页数量
     */
    @ApiModelProperty("每页数量")
    @Min(value = 1,message = "参数类型不对")
    private Integer pageSize=10;

    public Integer getPageIndex() {
        return pageIndex;
    }
    public void setPageIndex(int pageIndex) {
        this.pageIndex = pageIndex;
    }
    public Integer getPageSize() {
        return pageSize;
    }
    public void setPageSize(int pageSize) {
        this.pageSize = pageSize;
    }
}
